import { createStore } from 'vuex'
import createPersistedState from "vuex-persistedstate"
import common from './common'

const store = createStore({
    plugins: [
        createPersistedState({
            /* 指定存储的位置 */
            storage: window.sessionStorage
        })
    ],
    modules: {
        common
    }
})

export default store